<style>
/* 页面整体样式 */
.container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #f5f5f5;
}

/* 标题栏 */
.header {
  display: flex;
  align-items: center;
  height: 50px;
  background-color: #ffffff;
  padding: 0 10px;
  border-bottom: 1px solid #eaeaea;
}
.back-icon {
  font-size: 24px;
  color: #333;
  cursor: pointer;
}
.title {
  flex: 1;
  text-align: center;
  font-size: 18px;
  color: #333;
}

/* 设备列表 */
.device-list {
  flex: 1;
  padding: 20px 10px;
}
.device-item {
  background-color: #ffffff;
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.device-info {
  display: flex;
  margin-bottom: 10px;
}
.label {
  color: #666;
  font-size: 14px;
  margin-right: 10px;
}
.value {
  color: #333;
  font-size: 14px;
}
.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}
.delete {
  color: red;
  font-size: 14px;
  cursor: pointer;
}
.edit {
  color: #333;
  font-size: 14px;
  cursor: pointer;
}
.divider {
  color: #ddd;
  font-size: 14px;
}

/* 添加设备按钮 */
.add-button {
  width: 90%;
  height: 45px;
  background-color: #39b54a;
  color: #ffffff;
  font-size: 16px;
  text-align: center;
  line-height: 45px;
  margin: 20px auto;
  border-radius: 25px;
}

/* 弹窗样式 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal-content {
  width: 80%;
  background-color: #ffffff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.modal-title {
  font-size: 18px;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}
.modal-input {
  width: 100%;
  height: 40px;
  margin-bottom: 15px;
  padding: 5px 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  color: #333;
}
.modal-actions {
  display: flex;
  justify-content: space-between;
}
.modal-button {
  flex: 1;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 5px;
  margin: 0 5px;
  font-size: 14px;
}
.modal-button.cancel {
  background-color: #f5f5f5;
  color: #666;
}
.modal-button.confirm {
  background-color: #39b54a;
  color: #fff;
}
</style>
